package com.example.kotlinlearn.kotlinLearn.review

import android.os.Build
import androidx.annotation.RequiresApi
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter

@RequiresApi(Build.VERSION_CODES.O)
fun main(){

    val a = 1..1000 //闭区间
    val 吧= 1 until 10000  //左闭右开
    val c = 0 downTo -10000000  //递减区间
    for (i in 0 until 100) println(i)
    for (i in 0 downTo -9000 step 10) println(i)

    for (s in 0..19094733 step 100){
        val current = LocalDateTime.now()
        val time = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS")
        val timed = current.format(time)
        println(timed)
    }
}